package com.yhg.member.controller;


import com.yhg.common.utils.R;
import com.yhg.member.entity.BlAdmin;

import com.yhg.member.service.BlAdminService;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 管理员表 前端控制器
 * </p>
 *
 * @author 白小白
 * @since 2021-02-02
 */
@RestController
@RequestMapping("/member/admin")
public class BlAdminController {

    @Autowired
    BlAdminService adminService;

    //查询所有的数据
    @GetMapping("list")
    public R list(){
        List<BlAdmin> list = adminService.list(null);
        return R.ok().data("list",list);
    }

}

